package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.model.order.PaymentInfo;
import com.atguigu.yygh.model.order.RefundInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface PaymentService extends IService<PaymentInfo> {

    //保存交易记录
    void savePaymentInfo(OrderInfo orderInfo,Integer paymentType);

    //更改订单状态，处理支付结果
    void paySuccess(String out_trade_no, Integer paymentType, Map<String, String> resultMap);


    //获取支付记录
    PaymentInfo getPaymentInfo(Long orderId, Integer paymentType);



}
